<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>分类列表</title>
	<link rel="stylesheet" href="__PUBLIC__/Css/public.css" />
	<link rel="stylesheet" href="__STATIC__/hdjs/hdjs.css" />
</head>
<body>
	<form action="{|U:'category/sort'}" method="post">
		<table class="hd-table hd-table-list" border="1">
		 <thead>
			<tr>
				<th>ID</th>
				<th>分类名称</th>
				<th>摘要(描述)</th>
				<th>关键字</th>
				<th>排序字段</th>
				<th>是否显示</th>
				<th>静态目录</th>
				<th>列表页是否生成静态</th>
				<th>内容页是否生成静态</th>
				<th class="hd-w200">操作</th>
			</tr>
		</thead>
			 <?php foreach ($cateData as $k => $v): ?>
			 	<tbody>
				<tr>
				
					<td><input type="hidden" name="cid[]" value="<?php echo $v['cid'];?>"><?php echo $v['cid'];?></td>
					<td align="left"><?php echo $v['_name'];?></td>
					<td align="right"><?php echo $v['summary'];?></td>
					<td align="right"><?php echo $v['keywords'];?></td>
					<td align="right"><input type="text" name='sort[]' value="<?php echo $v['sort'];?>"></td>

					<td align="right"><?php if($v['is_show']==0){echo '否';}else{echo '是';}?></td>
					<td align="right"><?php echo $v['htmldir'];?></td>
					<td align="right"><?php if($v['is_listhtml']==0){echo '否';}else{echo '是';}?></td>
					<td align="right"><?php if($v['is_archtml']==0){echo '否';}else{echo '是';}?></td>
					<td align="right">
						<a href="{|U:'Category/add',array('pid'=>$v['cid'])}">[添加子分类]</a>
						<a href="{|U:'Category/edit',array('cid'=>$v['cid'])}">[修改]</a>
						<a href="{|U:'Category/del',array('cid'=>$v['cid'])}">[删除]</a>
					</td>
				</tr>
				
				</tbody>
			 <?php endforeach ?>
			 	<tr>
					<td colspan="10" align='center'>
						<input  type="submit" value="提交" class="hd-btn hd-btn-primary hd-btn-sm">
					</td>
				</tr>
		</table>
				
	</form>
</body>
</html>